# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer:
pkgname=libgdiplus
pkgver=6.1
pkgrel=3
pkgdesc="Open Source Implementation of the GDI+ API"
url="https://www.mono-project.com/"
arch="all"
license="MIT"
depends_dev="tiff-dev cairo-dev libexif-dev giflib-dev glib-dev pango-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev"
source="https://download.mono-project.com/sources/libgdiplus/libgdiplus-$pkgver.tar.gz
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-dependency-tracking \
		--with-pango
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
7f176d38024d5bde4a825ad00b907006f7dd3ff174e12aba6e91df0b624431cc9b536f1bcf206998bad11f6d03e6fe5122710591f58877de0f2c08e8cb4e46cd  libgdiplus-6.1.tar.gz
"
